package org.wak.scene
{
	import org.wak.baseoneonline.flash.geom.IntPoint;

	public class XMLWalkBehindDef implements IWalkbehindDefinition
	{
		
		// the Y baseline to activate this mask.
		private var mBaseline:int = 0 ;		
		
		// The received inverted mask id.
		private var mDisplayObjectId:String = "" ;
		
		// The coordinates of the inverted mask to act as real mask.
		private var mDispObjPosition:IntPoint = null 
		
		
		public function XMLWalkBehindDef(pXmlInput:XML)
		{
			mDisplayObjectId = pXmlInput.DisplayObject
			 
			var fIPt:XML = pXmlInput.Position.IntPoint[0] ;
			mDispObjPosition = new IntPoint(fIPt.@x, fIPt.@y); 
			mBaseline = pXmlInput.Baseline ;
			 
		}

		public function get displayObjectId():String
		{
			return mDisplayObjectId;
		}
		
		public function get baseline():int
		{
			return mBaseline;
		}
		
		public function get position():IntPoint
		{
			return mDispObjPosition;
		}
		
	}
}